package org.apache.axis2.json.Utils;

import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;

import java.io.InputStream;
import java.io.OutputStream;

/**
 * Created by IntelliJ IDEA.
 * User: shameera
 * Date: 1/30/12
 * Time: 11:06 PM
 * To change this template use File | Settings | File Templates.
 */
public class JsonMessageContext implements JsonConstant{
    
    private String OperationName;
    private String serivceName;
    private InputStream inMsgStream;
    private OutputStream outMsgStream;
    private JsonReader reader;

    private String charSet;
    private JsonWriter writer;

    public String getCharSet() {
        if(charSet==null)
            return DEFAULT_CHAR_SET;
        else
            return charSet;
    }

    public void setCharSet(String charSet) {
        this.charSet = charSet;
    }

    public static String getDefaultCharSet() {
        return DEFAULT_CHAR_SET;
    }

    public JsonReader getReader() {
        return reader;
    }

    public void setReader(JsonReader reader) {
        this.reader = reader;
    }

    public JsonWriter getWriter() {
        return writer;
    }

    public void setWriter(JsonWriter writer) {
        this.writer = writer;
    }

    public InputStream getInMsgStream() {
        return inMsgStream;
    }

    public void setInMsgStream(InputStream inMsgStream) {
        this.inMsgStream = inMsgStream;
    }

    public OutputStream getOutMsgStream() {
        return outMsgStream;
    }

    public void setOutMsgStream(OutputStream outMsgStream) {
        this.outMsgStream = outMsgStream;
    }


    public String getSerivceName() {
        return serivceName;
    }

    public void setSerivceName(String serivceName) {
        this.serivceName = serivceName;
    }

    public String getOperationName() {
        return OperationName;
    }

    public void setOperationName(String operationName) {
        OperationName = operationName;
    }
    
    private void createJsonReader(){
        
    }
}
